<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isFixed:false
    }
  },
  mounted() {
    console.log(this.$route);
    window.addEventListener("scroll",()=>{
      var scrollTop = document.documentElement.scrollTop;
      if(scrollTop>300){
        this.isFixed=true
      }else{
        this.isFixed = false
      }
    })
  },
}
</script>
<style scoped>

</style>>
